import requests
API_key = '4udXjI9wvOnmb6uKVqr7gS0iwvSQcmc6'
API_sercret = 'FtFY8-LLw7rHqVd6NEsUviJ7PJE5ASJg'
def face_analyze(API_Key,API_Secret,face_tokens,attributes):
    """该函数为调用face++ face_analyze接口，用于人脸分析"""
    url = 'https://api-cn.faceplusplus.com/facepp/v3/face/analyze'
    payload = {
        "api_key":API_Key,
        "api_secret":API_Secret,
        "face_tokens":face_tokens,
        "return_attributes":attributes
    }
    r = requests.post(url,params=payload)
    return r.json()